<template>
    <el-container>
        <el-header>
            <h1>登录日志</h1>
        </el-header>
        <el-main>
            <el-table :data="logData" style="width: 100%">
                <el-table-column prop="username" label="用户名" />
                <el-table-column prop="loginTime" label="登录时间" />
                <el-table-column prop="ip" label="IP地址" />
            </el-table>
        </el-main>
    </el-container>
</template>

<script setup>
import { ref } from "vue";

const logData = ref([
    { username: "user1", loginTime: "2023-01-01 10:00:00", ip: "192.168.1.1" },
    { username: "user2", loginTime: "2023-01-02 11:00:00", ip: "192.168.1.2" },
]);
</script>
